package cn.itsource.org.service;

import cn.itsource.basic.util.PageList;
import cn.itsource.org.domain.Employee;
import cn.itsource.org.query.EmployeeQuery;

import java.util.List;

public interface IEmployeeService {
    //加载所有
    List<Employee> findAll();
    //加载单个对象
    Employee findById(Long id);
    //保存一个对象
    void add(Employee employee);
    //移出一个对象
    void delById(Long id);
    //更新一个对象
    void update(Employee employee);
    //分页查询,PageList<Employee> 封装分页结果集(总条数,list)
    PageList<Employee> queryPage(EmployeeQuery employeeQuery);

    void parchDel(List<Long> ids);
}
